Website powered by

UNITY HLSL Unlit Glass Shader

🧊 Unity HLSL Unlit Glass Shader
Started getting into the shaders a couple of months back, and this is my first custom shader. I've dabbled in shaders before, but this marks the first time I've seriously started exploring shader art in depth.

I am using GrabPass for capturing background and distorting it using a normal map to simulate glass refraction.
We can create many interesting and cool results using different normal maps and cubemaps.
Tried to make the shader as modular as possible to extend its usability.

Kindly share any thoughts or Insights that would help me learn better.

This project was a great learning experience in Unity’s HLSL pipeline.
More to come as I continue exploring shader art! :-)

Unlit Glass Shader Properties

Shader Properties

Shader Properties

Shader Example 01

Shader Example 01

Shader Example 02

Shader Example 02

Shader Example 03

Shader Example 03

Shader Example 04

Shader Example 04

Quick way to add distortion on whole screen - Example 01

Quick way to add distortion on whole screen - Example 01

Quick way to add distortion on whole screen - Example 02

Quick way to add distortion on whole screen - Example 02

Frenal Effect - Example 01

Frenal Effect - Example 01

Frenal Effect - Example 02

Frenal Effect - Example 02

With Texture example

With Texture example